package com.fast.fastenjoy.components.sys.action;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.fast.fastenjoy.base.web.action.BaseAction;

/**
 * 用户处理Action
 * @author chenliaohua
 *
 */
@Controller
@RequestMapping
public class UserAction extends BaseAction{

	private static final long serialVersionUID = -5948902696288545336L;

	@RequestMapping("/login")
	public String login(){
		
		return "user/login";
	}
	
	@RequestMapping("/register")
	public String register(){
		return "user/register";
	}
	
	/**
	 * 检查用户名是否唯一
	 */
	@RequestMapping("/chenckUserName")
	public void chenckUserName(){
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("info", "该用户名可以用!");
		map.put("status", "y");
		toJson(map);
	}
	
	public String registerUser(){
		return "";
	}
	
	public String loginUser(){
		return "";
	}
	
}
